package com.example.demo.service;

import com.example.demo.entity.Socket;
import com.example.demo.req.SocketReq;

import java.util.List;

public interface SocketService {
    boolean isStartAll(Integer state);

    /**
     * 批量查询数据库，批量修改数据库状态
     * 取出map,批量修改
     * @param state
     * @param socketReqList
     * @return
     */
    boolean isStart(Integer state, List<Socket> socketReqList);

    List<Socket> state(List<Socket> socketReqs);

    List<Socket> allState();
}
